import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueAxiosPlugin from 'vue-axios-plugin'
import Vuecookie from 'vue-cookies'

// import WebIM, { contactPlugin, groupPlugin, chatroomPlugin } from 'easemob-websdk'
import WebIM from './utils/WebIM'
import vantTools from './vantTools'


Vue.use(vantTools);
Vue.use(Vuecookie);
Vue.config.productionTip = false
Vue.use(VueAxiosPlugin, {
  // 请求拦截处理
  reqHandleFunc: config => config,
  reqErrorFunc: error => Promise.reject(error),
  // 响应拦截处理
  resHandleFunc: response => response,
  resErrorFunc: error => Promise.reject(error)
})


const vue =new Vue({
  router,
  store,
  WebIM,
  render: h => h(App)
}).$mount('#app')


export default vue;